
$(function(){
	$("#logout-key").click(function(){
		pressLogout('logout-key');
	});
	
	$("#button-events").click(function(){
		document.location.href="/home/1";
		return false;
	});
	manageHoverOnButton("#button-events");
	
	$("#button-people").click(function(){
		document.location.href="/home/2";
		return false;
	});
	manageHoverOnButton("#button-people");
	
	$("#button-items").click(function(){
		document.location.href="/home/3";
		return false;
	});
	manageHoverOnButton("#button-items");
	
	$("#button-media").click(function(){
		document.location.href="/home/4";
		return false;
	});
	manageHoverOnButton("#button-media");
});







function pressLogout(logout) {
	$("#"+logout).css('background-image','url("/resources/img/main/logout_pressed.png")');
	setTimeout("document.location.href='/user/logout';$('#"+logout+"').css('background-image','url(\"/resources/img/main/logout.png\")');",100);
}

